/**
 * 获取这天的最后一刻时间戳
 * */
function getLastDayTimeStamp(date) {
    var todayYear=(date).getFullYear();
    var todayMonth=(date).getMonth();
    var todayDay=(date).getDate();
    var timestamp=(new Date(todayYear,todayMonth,todayDay,'23','59','59')).getTime();//毫秒
    // console.log("day - " + timestamp);
    return timestamp;
};

/**
 * 获取这周的最后一刻时间戳
 * */
function getLastWeekTimeStamp(date) {
    var todayYear=(new Date()).getFullYear();
    var todayMonth=(new Date()).getMonth();
    var todayDay=(new Date()).getDate();
    var day=(new Date()).getDay()==0?7:(new Date()).getDay();
    var timestamp=(new Date(todayYear,todayMonth,day,'23','59','59')).getTime();//毫秒
    return timestamp;
}